package com.hk.devp.upload;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@Controller
@RequestMapping("/ueditor")
public class BDUeditorController {

	@RequestMapping("/")
	public String index(){
		
		return "ueditor";
	}
	
	@RequestMapping("/uploadifive")
    public String uploadifive (HttpServletRequest request,HttpServletResponse response) {
        
        return "uploadifive";
    }
	@RequestMapping("/uploadify")
	public String uploadify (HttpServletRequest request,HttpServletResponse response) {
		
		return "uploadify";
	}
	
	@RequestMapping("/uploadify/upload")
	public String uploadifyUpload (HttpServletRequest request,HttpServletResponse response,@RequestParam("Filedata") MultipartFile  multipartFile) {
		
		System.out.println(multipartFile);
		
		return "uploadify";
	}
	
}
